package party.damao.issue.common;

/**
 * 返回状态码枚举量
 */
public enum EnumRestCode {

    ok(0, "正常"),
    forbidException(-1,"无权访问"),
    notLogin(-997, "session过期未登录"),
    errPwd(-998, "用户名密码错误"),
    notRegister(-998, "手机号未注册");


    private final int value;

    private final String description;

    private EnumRestCode(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

}
